<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>DSP: DSP.FourierTransform Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">DSP
   &#160;<span id="projectnumber">1.5.0</span>
   </div>
   <div id="projectbrief">Digital Signal Processing</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespace_d_s_p.html">DSP</a>      </li>
      <li class="navelem"><a class="el" href="class_d_s_p_1_1_fourier_transform.html">FourierTransform</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle">
<div class="title">DSP.FourierTransform Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="DSP::FourierTransform" -->
<p><a href="class_d_s_p_1_1_fourier_transform-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_s_p_1_1_fourier_transform.html#a47bdc43c21c304fa744aab8b2339da72">SetMeterFrequencies</a> (int[] meterFrequencies)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Changes the Frequency Bands to analyze. Affects the other static methods.  <a href="#a47bdc43c21c304fa744aab8b2339da72"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1f1ad2d800f16963475366b7aeb6612a"></a><!-- doxytag: member="DSP::FourierTransform::Spectrum" ref="a1f1ad2d800f16963475366b7aeb6612a" args="(ref double[] x, int method=Raw)" -->
static double[]&#160;</td><td class="memItemRight" valign="bottom"><b>Spectrum</b> (ref double[] x, int method=Raw)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static UInt32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_s_p_1_1_fourier_transform.html#a99785b7ee5647c72844a2fc9b5e14754">NumberOfBitsNeeded</a> (UInt32 PowerOfTwo)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Number of bits needed for a power of two.  <a href="#a99785b7ee5647c72844a2fc9b5e14754"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static UInt32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_s_p_1_1_fourier_transform.html#afa6db7fa9c4635a1b4b8acd0a06baec1">ReverseBits</a> (UInt32 index, UInt32 NumBits)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reverse bits.  <a href="#afa6db7fa9c4635a1b4b8acd0a06baec1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static Double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_s_p_1_1_fourier_transform.html#a831c2b6f2167ab42ad052ba0d1875cd1">IndexToFrequency</a> (UInt32 Index, UInt32 NumSamples)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return index to frequency based on number of samples.  <a href="#a831c2b6f2167ab42ad052ba0d1875cd1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_s_p_1_1_fourier_transform.html#a45ace423c262264502b21d44b312cd51">Compute</a> (UInt32 NumSamples, Double[] pRealIn, Double[] pImagIn, Double[] pRealOut, Double[] pImagOut, Boolean bInverseTransform)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute FFT.  <a href="#a45ace423c262264502b21d44b312cd51"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_s_p_1_1_fourier_transform.html#a7a5a9dd5ee6ba598e3e29d6d1e425a3d">Norm</a> (UInt32 NumSamples, Double[] pReal, Double[] pImag, Double[] pAmpl)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculate normal (power spectrum)  <a href="#a7a5a9dd5ee6ba598e3e29d6d1e425a3d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a388602480b635e58810af64a679e0f1a"></a><!-- doxytag: member="DSP::FourierTransform::normalizeFFTValue" ref="a388602480b635e58810af64a679e0f1a" args="(double value)" -->
static double&#160;</td><td class="memItemRight" valign="bottom"><b>normalizeFFTValue</b> (double value)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_s_p_1_1_fourier_transform.html#a2c60c965ca868258c368c64c3c6e4267">Compute2D</a> (UInt32 width, UInt32 height, ref Double[] pRealIn, Double[] pImagIn, ref Double[] pRealOut, ref Double[] pImagOut, Boolean bInverseTransform=false)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static Double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_s_p_1_1_fourier_transform.html#aa7993d4d6bb1fe35f00f9bf7e7d2e8b7">PeakFrequency</a> (UInt32 NumSamples, Double[] pAmpl, Double samplingRate, ref UInt32 index)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Find Peak frequency in Hz.  <a href="#aa7993d4d6bb1fe35f00f9bf7e7d2e8b7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab8f5112b2761041a0c57279205ac2d6f"></a><!-- doxytag: member="DSP::FourierTransform::GetPeaks" ref="ab8f5112b2761041a0c57279205ac2d6f" args="(double[] leftChannel, double[] rightChannel, int sampleFrequency)" -->
static byte[]&#160;</td><td class="memItemRight" valign="bottom"><b>GetPeaks</b> (double[] leftChannel, double[] rightChannel, int sampleFrequency)</td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae5d0cd2fcefddf8c43b91516bb33997b"></a><!-- doxytag: member="DSP::FourierTransform::Raw" ref="ae5d0cd2fcefddf8c43b91516bb33997b" args="" -->
const int&#160;</td><td class="memItemRight" valign="bottom"><b>Raw</b> = 1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3f8b59bd51fcbf3fe61ed0c71d11d925"></a><!-- doxytag: member="DSP::FourierTransform::Decibel" ref="a3f8b59bd51fcbf3fe61ed0c71d11d925" args="" -->
const int&#160;</td><td class="memItemRight" valign="bottom"><b>Decibel</b> = 2</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1524f1975dabe16e556ba6fc1ab96035"></a><!-- doxytag: member="DSP::FourierTransform::FREQUENCYSLOTCOUNT" ref="a1524f1975dabe16e556ba6fc1ab96035" args="" -->
const int&#160;</td><td class="memItemRight" valign="bottom"><b>FREQUENCYSLOTCOUNT</b> = 21</td></tr>
</table>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a45ace423c262264502b21d44b312cd51"></a><!-- doxytag: member="DSP::FourierTransform::Compute" ref="a45ace423c262264502b21d44b312cd51" args="(UInt32 NumSamples, Double[] pRealIn, Double[] pImagIn, Double[] pRealOut, Double[] pImagOut, Boolean bInverseTransform)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void <a class="el" href="class_d_s_p_1_1_fourier_transform.html#a45ace423c262264502b21d44b312cd51">DSP.FourierTransform.Compute</a> </td>
          <td>(</td>
          <td class="paramtype">UInt32&#160;</td>
          <td class="paramname"><em>NumSamples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Double[]&#160;</td>
          <td class="paramname"><em>pRealIn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Double[]&#160;</td>
          <td class="paramname"><em>pImagIn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Double[]&#160;</td>
          <td class="paramname"><em>pRealOut</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Double[]&#160;</td>
          <td class="paramname"><em>pImagOut</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Boolean&#160;</td>
          <td class="paramname"><em>bInverseTransform</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Compute FFT. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">NumSamples</td><td>NumSamples Number of samples (must be power two)</td></tr>
    <tr><td class="paramname">pRealIn</td><td>Real samples</td></tr>
    <tr><td class="paramname">pImagIn</td><td>Imaginary (optional, may be null)</td></tr>
    <tr><td class="paramname">pRealOut</td><td>Real coefficient output</td></tr>
    <tr><td class="paramname">pImagOut</td><td>Imaginary coefficient output</td></tr>
    <tr><td class="paramname">bInverseTransform</td><td>bInverseTransform when true, compute Inverse FFT</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a2c60c965ca868258c368c64c3c6e4267"></a><!-- doxytag: member="DSP::FourierTransform::Compute2D" ref="a2c60c965ca868258c368c64c3c6e4267" args="(UInt32 width, UInt32 height, ref Double[] pRealIn, Double[] pImagIn, ref Double[] pRealOut, ref Double[] pImagOut, Boolean bInverseTransform=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void <a class="el" href="class_d_s_p_1_1_fourier_transform.html#a2c60c965ca868258c368c64c3c6e4267">DSP.FourierTransform.Compute2D</a> </td>
          <td>(</td>
          <td class="paramtype">UInt32&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UInt32&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ref Double[]&#160;</td>
          <td class="paramname"><em>pRealIn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Double[]&#160;</td>
          <td class="paramname"><em>pImagIn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ref Double[]&#160;</td>
          <td class="paramname"><em>pRealOut</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ref Double[]&#160;</td>
          <td class="paramname"><em>pImagOut</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Boolean&#160;</td>
          <td class="paramname"><em>bInverseTransform</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Compute 2D FFT</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">width</td><td>Width of the Matrix (must be power two)</td></tr>
    <tr><td class="paramname">height</td><td>Height of the Matrix (must be power two)</td></tr>
    <tr><td class="paramname">pRealIn</td><td>Real samples</td></tr>
    <tr><td class="paramname">pImagIn</td><td>Imaginary (optional, may be null)</td></tr>
    <tr><td class="paramname">pRealOut</td><td>Real coefficient output</td></tr>
    <tr><td class="paramname">pImagOut</td><td>Imaginary coefficient output</td></tr>
    <tr><td class="paramname">bInverseTransform</td><td>bInverseTransform when true, compute Inverse FFT</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a831c2b6f2167ab42ad052ba0d1875cd1"></a><!-- doxytag: member="DSP::FourierTransform::IndexToFrequency" ref="a831c2b6f2167ab42ad052ba0d1875cd1" args="(UInt32 Index, UInt32 NumSamples)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static Double <a class="el" href="class_d_s_p_1_1_fourier_transform.html#a831c2b6f2167ab42ad052ba0d1875cd1">DSP.FourierTransform.IndexToFrequency</a> </td>
          <td>(</td>
          <td class="paramtype">UInt32&#160;</td>
          <td class="paramname"><em>Index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UInt32&#160;</td>
          <td class="paramname"><em>NumSamples</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return index to frequency based on number of samples. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">Index</td><td>sample index</td></tr>
    <tr><td class="paramname">NumSamples</td><td>number of samples</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Frequency index range</dd></dl>

</div>
</div>
<a class="anchor" id="a7a5a9dd5ee6ba598e3e29d6d1e425a3d"></a><!-- doxytag: member="DSP::FourierTransform::Norm" ref="a7a5a9dd5ee6ba598e3e29d6d1e425a3d" args="(UInt32 NumSamples, Double[] pReal, Double[] pImag, Double[] pAmpl)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void <a class="el" href="class_d_s_p_1_1_fourier_transform.html#a7a5a9dd5ee6ba598e3e29d6d1e425a3d">DSP.FourierTransform.Norm</a> </td>
          <td>(</td>
          <td class="paramtype">UInt32&#160;</td>
          <td class="paramname"><em>NumSamples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Double[]&#160;</td>
          <td class="paramname"><em>pReal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Double[]&#160;</td>
          <td class="paramname"><em>pImag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Double[]&#160;</td>
          <td class="paramname"><em>pAmpl</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Calculate normal (power spectrum) </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">NumSamples</td><td>Number of sample</td></tr>
    <tr><td class="paramname">pReal</td><td>Real coefficient buffer</td></tr>
    <tr><td class="paramname">pImag</td><td>Imaginary coefficient buffer</td></tr>
    <tr><td class="paramname">pAmpl</td><td>Working buffer to hold amplitude Xps(m) = | X(m)^2 | = Xreal(m)^2 + Ximag(m)^2</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a99785b7ee5647c72844a2fc9b5e14754"></a><!-- doxytag: member="DSP::FourierTransform::NumberOfBitsNeeded" ref="a99785b7ee5647c72844a2fc9b5e14754" args="(UInt32 PowerOfTwo)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static UInt32 <a class="el" href="class_d_s_p_1_1_fourier_transform.html#a99785b7ee5647c72844a2fc9b5e14754">DSP.FourierTransform.NumberOfBitsNeeded</a> </td>
          <td>(</td>
          <td class="paramtype">UInt32&#160;</td>
          <td class="paramname"><em>PowerOfTwo</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get Number of bits needed for a power of two. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">PowerOfTwo</td><td>Power of two number</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Number of bits</dd></dl>

</div>
</div>
<a class="anchor" id="aa7993d4d6bb1fe35f00f9bf7e7d2e8b7"></a><!-- doxytag: member="DSP::FourierTransform::PeakFrequency" ref="aa7993d4d6bb1fe35f00f9bf7e7d2e8b7" args="(UInt32 NumSamples, Double[] pAmpl, Double samplingRate, ref UInt32 index)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static Double <a class="el" href="class_d_s_p_1_1_fourier_transform.html#aa7993d4d6bb1fe35f00f9bf7e7d2e8b7">DSP.FourierTransform.PeakFrequency</a> </td>
          <td>(</td>
          <td class="paramtype">UInt32&#160;</td>
          <td class="paramname"><em>NumSamples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Double[]&#160;</td>
          <td class="paramname"><em>pAmpl</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Double&#160;</td>
          <td class="paramname"><em>samplingRate</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ref UInt32&#160;</td>
          <td class="paramname"><em>index</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Find Peak frequency in Hz. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">NumSamples</td><td>Number of samples</td></tr>
    <tr><td class="paramname">pAmpl</td><td>Current amplitude</td></tr>
    <tr><td class="paramname">samplingRate</td><td>Sampling rate in samples/second (Hz)</td></tr>
    <tr><td class="paramname">index</td><td>Frequency index</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Peak frequency in Hz</dd></dl>

</div>
</div>
<a class="anchor" id="afa6db7fa9c4635a1b4b8acd0a06baec1"></a><!-- doxytag: member="DSP::FourierTransform::ReverseBits" ref="afa6db7fa9c4635a1b4b8acd0a06baec1" args="(UInt32 index, UInt32 NumBits)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static UInt32 <a class="el" href="class_d_s_p_1_1_fourier_transform.html#afa6db7fa9c4635a1b4b8acd0a06baec1">DSP.FourierTransform.ReverseBits</a> </td>
          <td>(</td>
          <td class="paramtype">UInt32&#160;</td>
          <td class="paramname"><em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UInt32&#160;</td>
          <td class="paramname"><em>NumBits</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reverse bits. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>Bits</td></tr>
    <tr><td class="paramname">NumBits</td><td>Number of bits to reverse</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Reverse Bits</dd></dl>

</div>
</div>
<a class="anchor" id="a47bdc43c21c304fa744aab8b2339da72"></a><!-- doxytag: member="DSP::FourierTransform::SetMeterFrequencies" ref="a47bdc43c21c304fa744aab8b2339da72" args="(int[] meterFrequencies)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void <a class="el" href="class_d_s_p_1_1_fourier_transform.html#a47bdc43c21c304fa744aab8b2339da72">DSP.FourierTransform.SetMeterFrequencies</a> </td>
          <td>(</td>
          <td class="paramtype">int[]&#160;</td>
          <td class="paramname"><em>meterFrequencies</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Changes the Frequency Bands to analyze. Affects the other static methods. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">meterFrequencies</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>DSP.cs</li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Dec 5 2012 19:24:55 for DSP by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
